

function(_get_kit_name kitvar)
  # Will this always work?  It should if ${CMAKE_CURRENT_SOURCE_DIR} is
  # built from ${VTKm_SOURCE_DIR}.
  string(REPLACE "${demo_SOURCE_DIR}/" "" dir_prefix ${CMAKE_CURRENT_SOURCE_DIR})
  string(REPLACE "/" "_" kit "${dir_prefix}")
  set(${kitvar} "${kit}" PARENT_SCOPE)
  # Optional second argument to get dir_prefix.
  if (${ARGC} GREATER 1)
    set(${ARGV1} "${dir_prefix}" PARENT_SCOPE)
  endif (${ARGC} GREATER 1)
endfunction(_get_kit_name)


_get_kit_name(kit_name kit_dir)

message(${kit_name})
message(${kit_dir})
#add_library(${_this} ${_headers} ${_sources})
#target_include_directories(${_this} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
#find_package(VTKm REQUIRED QUIET)
#target_link_libraries(${_this} PUBLIC vtkm_filter)

#add_subdirectory(worklet1)
#add_subdirectory(qbase)